import { Injectable } from '@angular/core';

@Injectable()
export class HttpRouterService {

  constructor() { }

  private ApiVersion = 'v1/';
  // server url
  //private ApiUrl = 'http://l.phph5.com/api/';
  private ApiUrl = 'http://xdm.mengzhudai.com/api/';
  // test url
  //private ApiUrl = 'http://172.31.152.105:8081/api/allianz/phoenix/' + this.ApiVersion;



  sendSms = this.ApiUrl + 'sms/send';
  setPhone = this.ApiUrl + 'customer/step1';
  setInfo = this.ApiUrl + 'customer/step2';
  getProductList = this.ApiUrl + 'product/lists';
  getProductDetails = this.ApiUrl + 'product/detail';
  setOrder = this.ApiUrl + 'product/order';

  logIn = this.ApiUrl + 'commissioner/login';
  regist = this.ApiUrl + 'commissioner/register';
  resetpwd = this.ApiUrl + 'commissioner/resetpwd';
  getUser = this.ApiUrl + 'commissioner/getcommissioner';
  danList = this.ApiUrl + 'customer/lists';
  quanju = this.ApiUrl + 'customer/quanju';
  userDetail = this.ApiUrl + 'customer/detail';
  region = this.ApiUrl + 'region/lists';
  records = this.ApiUrl + 'commissioner/records';
  orderList = this.ApiUrl + 'commissioner/orderlists';
  createorder = this.ApiUrl + 'commissioner/createorder';
  edit = this.ApiUrl + 'commissioner/edit';

  commissioner = this.ApiUrl + 'upload/commissioner';
  certification = this.ApiUrl + 'commissioner/certification';

  datasuv = 'http://api.datasuv.net/data/add?m=Ml8xXzMyOV8yNzY=';
  ocdc = "http://ocdc.fang-crm.com/api/index/add?key=4trhDV4oQ4CDuzJOvnachMITYgdChPgPevmBhZUw";
  dataduke = function(c,v){
    return "http://dc.szduke.cn/api/loan/reg?c="+c+"&t=loan&v="+v+"&b=mobile"
  };

  log = this.ApiUrl + "customer/log";
  orderremark = this.ApiUrl + 'commissioner/orderremark';

}
